
using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using bjeschool_csharp.Model;

namespace bjeschool
{
	public partial class HomeWorkCell : CommonCell<M_HomeWork>
	{
		public HomeWorkCell () //: base ("HomeWorkCell", null)
		{
			NSBundle.MainBundle.LoadNib("HomeWorkCell", this, null);
		}

		public override void SetData (M_HomeWork item)
		{
			
			Title.Text = item.Title;
			StartTime.Text = item.StartTime.ToShortDateString();
			Deadline.Text = item.Deadline.ToShortDateString();

		}

		[Outlet("CellView")]
		public override UITableViewCell CellView { get; set; }
		[Outlet("Title")]
		public UILabel Title { get; set; }
		[Outlet("StartTime")]
		public UILabel StartTime {get;set;}
		[Outlet("Deadline")]
		public UILabel Deadline {get;set;}
	}
}

